package com.gof.example.prototype.prototypemanager;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/3 08:45.
 * haiming.fei@tongdun.cn
 */
public abstract class OfficeDocument implements Cloneable {

    private String name;

    @Override
    protected OfficeDocument clone() throws CloneNotSupportedException {
        return (OfficeDocument) super.clone();
    }

    abstract void display();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
